;
; Title:        Config file of pH7 Dating Social Community CMS
;
; Author:       Pierre-Henry Soria <hello@ph7cms.com>
; Copyright:    (c) 2011-2016, Pierre-Henry Soria. All Rights Reserved.
; License:      GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
; Link:         http://ph7cms.com
;
;

[application]
; 'production' or 'development'
environment = production
; Default theme (do not change)
default_theme = base
; Especially do not touch! This is the language of the internal system default
default_lang = "en_US"

[software]
name = "¡pH7! Social Dating CMS"
type = Core
version = "0.5.2"
author = "Pierre-Henry Soria"
company = "HiZup, Ltd. (Pierre-Henry Soria)"
copyright = "Pierre-Henry Soria, All Rights Reserved."
license = GNU
website = "http://ph7cms.com"
email = "contact@hizup.net"

[database]
type_name = %db_type_name%
type = %db_type%
hostname = "%db_hostname%"
name = "%db_name%"
username = "%db_username%"
password = "%db_password%"
prefix = "%db_prefix%"
charset = "%db_charset%"
port = %db_port%
sock = ""

[validate]
phone.pattern = "(\+|00)[0-9]{1,3}[0-9]{5,14}(x.+)?"

[video]
; Max video size. e.g.,15K, 100M, 4G
upload.max_size = 500M
; FFmpeg Config. e.g., Unix: /usr/bin/ffmpeg Windows: C:\ffmpeg\ffmpeg.exe
handle.ffmpeg_path = "%ffmpeg_path%"

[cookie]
; If you have multiple sites with this CMS on the same domain, the prefix is used to avoid the collision between the same cookie
prefix = "pH7%rand_id%_"
; 31536000 seconds = 1 year
expiration = 31536000
path = "/"

; Cookie domain, for example 'yoursite.com'.
; To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.yoursite.com'
domain = PH7_DOMAIN_COOKIE

[session]
prefix = "pH7%rand_id%_"

; WARNING The session name can't consist of digits only, at least one letter must be present.
; Otherwise a new session id is generated every time.
; e.g., PHPSESSID
cookie_name = "PHS7SESS"
; 10800 seconds = 3 hours
expiration = 10800
path = "/"

; Session Cookie domain, for example 'yoursite.com'.
; To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.yoursite.com'
domain = PH7_DOMAIN_COOKIE

[cache]
; General cache, usually for database contents, but may also involve other data
enable.general.cache = 1
; Caching for HTML contents from template files
enable.html.tpl.cache = 1
; Caching for JavaScript and CSS files, It's very important to activate it if you use the compressor code, but you must disable it when you are in developing
enable.static.cache = 1
; Compression for CSS, HTML, PHP and JavaScript (also includes the generated code dynamically as Geo Map code) files
enable.static.compressor = 1
; Gzip compress for JavaScript, CSS and other static files
enable.static.gzip = 1
; base64 encode for images and other static data and if file-size is lower than 24KB
enable.static.data_uri = 1
; Enable or Disabled the compressor with Java
; (Requires Java installed on your server! This option is usually available on dedicated servers, sometimes on shared hosting. Please contact your hosting company for knowledge)
enable.static.minify_use_java_compiler = 0

[api]
; Never change the API key (and never share it)!! This key is like a password. Each pH7CMS installation has a different one.
; The key is used for external apps, like iOS/Android apps, external app websites, etc.
private_key = "%private_key%"
; Domains that can use the API
allow_domains[] = "hizup.com"
allow_domains[] = "hizup.net"
allow_domains[] = "idzup.com"
allow_domains[] = "coolonweb.com"
allow_domains[] = "ph7cms.com"

[logging]
log_level = 100
bug_report_email = "%bug_report_email%"
; 'file', 'database' or 'email'
log_handler = file
